tmem: propagate ENOMEM result in error handling
authorMatthew Daley <mattd@bugfuzz.com>
Fri, 4 Apr 2014 09:08:24 +0000 (11:08 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 4 Apr 2014 09:08:24 +0000 (11:08 +0200)
commit2cb8e71744b9c0e0663b8a0419606a73f01562e9
tree1aef8936194969e6478356233831b87ecc5a8ccc
parent660e1ab0a5f0a39deb50a53ec1b47e73eb2ebc5a
tmem: propagate ENOMEM result in error handling

...otherwise if pcd_associate fails due to out-of-memory, the caller of
do_tmem_put will think the call was successful.

While at it, fix up the style issue.

Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c